package com.sinosoft.tcmemr.manager.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sinosoft.tcmemr.dao.DiagnoseCodeEntityMapper;
import com.sinosoft.tcmemr.entity.DiagnoseCodeEntity;
import com.sinosoft.tcmemr.manager.DiagnoseCodeManager;
@Component
public class DiagnoseCodeManagerImpl implements DiagnoseCodeManager {
	@Autowired
	private DiagnoseCodeEntityMapper diagnosecodemapper;
	
	/**
	 * 英文编码或拼音编码查询
	 * @param Type 1：疾病 2：诊断
	 * @param strEnInput 输入英文字符
	 * @param fetchRows 获取行数
	 * @return List<DiagnoseCodeEntity>
	 */
	public List<DiagnoseCodeEntity> selectByEnInput(@Param("Type")Integer Type,
			@Param("strEnInput")String strEnInput,@Param("fetchRows")Integer fetchRows){
		return diagnosecodemapper.selectByEnInput(Type, strEnInput,fetchRows);
	}
	/**
	 * 中文名称查询
	 * @param Type 1：疾病 2：诊断
	 * @param strCNInput 输入汉字字符
	 * @param fetchRows 获取行数
	 * @return List<DiagnoseCodeEntity>
	 */
	public List<DiagnoseCodeEntity> selectByCNInput(@Param("Type")Integer Type, 
			@Param("strCNInput")String strCNInput, @Param("fetchRows")Integer fetchRows){
		return diagnosecodemapper.selectByCNInput(Type, strCNInput,fetchRows);
	}
	
	
}
